<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<!-- meta -->
<meta name="keywords" content="">
<meta name="description" content="">
<!-- /meta -->

<c:if test="${actionType == 'DEL'}" >
	<title>${gamenName}メタデータスキーマ削除</title>
</c:if>
<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
	<title>${gamenName}登録/編集 - 確認</title>
</c:if>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/headerfooter.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/ulol.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/arrow.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements.css">
<!-- admin -->
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base_admin.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements_admin.css">
<!-- /admin -->
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/library.js"></script>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_winie3.css">
<!--[if gte IE 5]>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_over_winie5.css">
<![endif]-->
<!--[if IE 5]>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_winie5.css">
<![endif]-->
<SCRIPT type="text/javascript">

	function back(){
		confirmForm.action ='<%= request.getContextPath() %>/outputschema/manage-modoru';
		confirmForm.submit();
	}

</SCRIPT>
</head>
<body id="dch">
<!-- === headerArea === -->
<div id="headerArea">
<a name="pageTop" id="pageTop"></a>
<jsp:include page="/common/include/header.jsp" />
</div><!-- === /headerArea === -->
<!-- === mainArea === -->
<div id="mainArea">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<td width="140" id="leftArea">
		<!-- === leftArea === -->
		<jsp:include page="output_menu.jsp" />
		<!-- === /leftArea === -->
		</td>
		<td width="20"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="20" height="4" border="0" alt=""></td>
		<td id="contentsArea">
		<!-- === contentsArea === -->
			<!-- headingLv01Block -->
			<div class="headingLv01Block">
				<!-- headingLv01 -->
				<c:if test="${actionType == 'DEL'}" >
					<h1>${gamenName}スキーマ削除</h1>
				</c:if>
				<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
					<h1>${gamenName}登録/編集 - 確認</h1>
				</c:if>

				<!-- /headingLv01 -->
			</div>
			<!-- /headingLv01Block -->
			<!-- columnB01 -->
			<div class="columnB01">
				<c:if test="${actionType == 'DEL'}" >
					<p class="text">この内容を削除します</p>
				</c:if>
				<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
					<p class="text">この内容で登録します</p>
				</c:if>

			</div>
			<!-- /columnB01 -->
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>ヘッダ情報</em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->
			<form action="<%= request.getContextPath() %>/outputschema/manage-execute" method="post" id="confirmForm">

			<s:hidden name="actionType"/>
			<s:hidden name="sort"/>

			<s:hidden name="dataSchema.sort"/>
			<s:hidden name="dataSchema.name"/>
		    <s:hidden name="dataSchema.schemaid"/>
			<s:hidden name="dataSchema.createUser"/>
			<s:hidden name="dataSchema.createDate"/>
			<s:hidden name="dataSchema.modifyUser"/>
			<s:hidden name="dataSchema.modifyDate"/>
			<s:token/>
			<!-- tableBlock -->
			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
				<table border="1" cellspacing="0" cellpadding="5" width="558">
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="fServiceName">名称</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{dataSchema.name}" /></td>
					</tr>
					<c:if test="${sort != '001' and sort != '007'}">
					<tr>
						<!-- ラベル -->
						<th class="lv01B" width="170"><label for="fServiceName">${gamenOyaName}</label></th>
						<!-- エラー -->
						<th width="11" class="error">&nbsp;</th>
						<!-- 内容 -->
						<td>
							<s:property value="%{dataSchema.oyaschemaName}"/>
					    	<s:hidden name="dataSchema.oyaschemaid" />
					    	<s:hidden name="dataSchema.oyaschemaName" />
						</td>
					</tr>
					</c:if>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="createUser">登録者</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{dataSchema.createUser}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="createDate">登録日付</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{dataSchema.createDate}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="modifyUser">最終更新者</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{dataSchema.modifyUser}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="modifyDate">最終更新日付</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{dataSchema.modifyDate}" /></td>
					</tr>
				</table>
				</div>
				<!-- /tableA01 -->
			</div>
			<!-- /tableBlock -->
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>${gamenName}情報</em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->

			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
					<table border="1" cellspacing="0" cellpadding="5" id="metaTbl">
						<tr>
							<th class="lv01B" colspan="3">項目</th>
							<th class="lv01B" >入力形式</th>
							<th class="lv01B">要/不要</th>
							<th class="lv01B">TM<BR/>対応</th>
							<th class="lv01B">必須/選択</th>
							<th class="lv01B">PORTA連携</th>
							<th class="lv01B">内容</th>
						</tr>
						<s:iterator value="define.list" status="stat">
						<tr>
							<s:hidden name="schemaItemList[%{#stat.index}].schemaid" />
							<s:hidden name="schemaItemList[%{#stat.index}].fieldKey" />
							<s:iterator value="itemList" status="itemStat">
								<th class="lv01B" rowspan="${rowspan}" colspan="${colspan}"><s:property value="value" /></th>
							</s:iterator>
							<td>
								<c:if test="${schemaItemList[stat.index].inputType == '0'}" >
									<span id="type1">テキスト</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType"/>
								</c:if>
								<c:if test="${schemaItemList[stat.index].inputType == '1'}" >
									<span id="type1">テキストエリア</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType"/>
								</c:if>
								<c:if test="${schemaItemList[stat.index].inputType == '2'}" >
									<span id="type1">ドロップダウンリスト</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType"/>
								</c:if>
								<c:if test="${schemaItemList[stat.index].inputType == '3'}" >
									<span id="type1">ラジオボタン</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType"/>
								</c:if>
								<c:if test="${schemaItemList[stat.index].inputType == '4'}" >
									<span id="type1">チェックボックス</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType"/>
								</c:if>
								<c:if test="${schemaItemList[stat.index].inputType == '5'}" >
									<span id="type1">日付</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType"/>
								</c:if>
								<c:if test="${schemaItemList[stat.index].inputType == '6'}" >
									<span id="type1">複数テキスト</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType"/>
								</c:if>
								<c:if test="${schemaItemList[stat.index].inputType == '7'}" >
									<span id="type1">フィールド指定</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType"/>
								</c:if>
								<c:if test="${schemaItemList[stat.index].inputType == '' || schemaItemList[stat.index].inputType == null}" >
									<span id="type1">テキスト</span>
							 		<s:hidden name="schemaItemList[%{#stat.index}].inputType" value="0"/>
								</c:if>

							 	<s:hidden name="schemaItemList[%{#stat.index}].optionKbn" />
							 	<s:hidden name="schemaItemList[%{#stat.index}].options" />
							 </td>
							 <td>
								<c:if test="${schemaItemList[stat.index].display == '0'}" >
									<span id="type1">要</span>
								</c:if>
								<c:if test="${schemaItemList[stat.index].display == '1'}" >
									<span id="type1">不要</span>
								</c:if>
								<s:hidden name="schemaItemList[%{#stat.index}].display"  />
							 </td>
							 <td align="center">
							 	<s:hidden name="schemaItemList[%{#stat.index}].tmSign"/>
							 	<s:if test='%{schemaItemList[#stat.index].tmSign == "true"}'>
							 		○
							 	</s:if>
							 	<s:else>
							 		×
							 	</s:else>
							 </td>
							 <td>
							 	<c:if test="${schemaItemList[stat.index].hissuSelectSign == '0'}" >
									<span id="type1">選択</span>
								</c:if>
								<c:if test="${schemaItemList[stat.index].hissuSelectSign == '1'}" >
									<span id="type1">必須</span>
								</c:if>
							 	<s:hidden name="schemaItemList[%{#stat.index}].hissuSelectSign"  />
							 </td>
							  <td align="center">
							  	<s:hidden name="schemaItemList[%{#stat.index}].portaSign"/>
							 	<s:if test='%{schemaItemList[#stat.index].portaSign == "true"}'>
							 		○
							 	</s:if>
							 	<s:else>
							 		×
							 	</s:else>
							 </td>
							 <td><c:out value="${schemaItemList[stat.index].content}" /><s:hidden name="schemaItemList[%{#stat.index}].content"  /></td>
							 <s:hidden name="schemaItemList[%{#stat.index}].customSign"  value="0"/>
						</tr>
						</s:iterator>
					</table>
					</div>
				<!-- /tableA01 -->
			</div>

			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>カスタムデータ</em></p></td>
				</tr>
			</table>
			</div>
			<!-- headingLv02 -->
			<s:if test="customItemList.size != 0">
			<div class="tableBlock">
				<div class="tableA01">

				<table border="1" cellspacing="0" cellpadding="5">
				<tr>
					<th class="lv01B" >項目</th>
					<th class="lv01B" >入力形式</th>
					<th class="lv01B">要/不要</th>
					<th class="lv01B">TM<BR/>対応</th>
					<th class="lv01B">必須/選択</th>
					<th class="lv01B">PORTA連携</th>
					<th class="lv01B">内容</th>
				</tr>
				<s:iterator value="customItemList" status="customItemStat">
					<tr>
						<td>
							<c:out value="${fieldItemName}" />
							<s:hidden name="customItemList[%{#customItemStat.index}].fieldDisplayname"  value="%{customItemList[#customItemStat.index].fieldItemName}"/>
							<s:hidden name="customItemList[%{#customItemStat.index}].fieldItemName"/>
						</td>
						<td>
							<c:if test="${customItemList[customItemStat.index].inputType == '0'}" >
								<span id="type1">テキスト</span>
							 	<s:hidden name="customItemList[%{#customItemStat.index}].inputType"/>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].inputType == '1'}" >
								<span id="type1">テキストエリア</span>
						 		<s:hidden name="customItemList[%{#customItemStat.index}].inputType"/>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].inputType == '2'}" >
								<span id="type1">ドロップダウンリスト</span>
						 		<s:hidden name="customItemList[%{#customItemStat.index}].inputType"/>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].inputType == '3'}" >
								<span id="type1">ラジオボタン</span>
						 		<s:hidden name="customItemList[%{#customItemStat.index}].inputType"/>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].inputType == '4'}" >
								<span id="type1">チェックボックス</span>
						 		<s:hidden name="customItemList[%{#customItemStat.index}].inputType"/>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].inputType == '5'}" >
								<span id="type1">日付</span>
						 		<s:hidden name="customItemList[%{#customItemStat.index}].inputType"/>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].inputType == '6'}" >
								<span id="type1">複数テキスト</span>
						 		<s:hidden name="customItemList[%{#customItemStat.index}].inputType"/>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].inputType == '7'}" >
								<span id="type1">フィールド指定</span>
						 		<s:hidden name="customItemList[%{#customItemStat.index}].inputType"/>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].inputType == '' || customItemList[customItemStat.index].inputType == null}" >
								<span id="type1">テキスト</span>
						 		<s:hidden name="customItemList[%{#customItemStat.index}].inputType" value="0"/>
							</c:if>

							<s:hidden name="customItemList[%{#customItemStat.index}].optionKbn" />
							 <s:hidden name="customItemList[%{#customItemStat.index}].options" />
						</td>
						<td>
							<c:if test="${customItemList[customItemStat.index].display == '0'}" >
								<span id="type1">要</span>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].display == '1'}" >
								<span id="type1">不要</span>
							</c:if>
							<s:hidden name="customItemList[%{#customItemStat.index}].display"  />
						 </td>
						 <td align="center">
						 	<s:hidden name="customItemList[%{#customItemStat.index}].tmSign"/>
						 	<s:if test='%{customItemList[#customItemStat.index].tmSign == "true"}'>
						 		○
						 	</s:if>
						 	<s:else>
						 		×
						 	</s:else>
						 </td>
						 <td>
						 	<c:if test="${customItemList[customItemStat.index].hissuSelectSign == '0'}" >
								<span id="type1">選択</span>
							</c:if>
							<c:if test="${customItemList[customItemStat.index].hissuSelectSign == '1'}" >
								<span id="type1">必須</span>
							</c:if>
						 	<s:hidden name="customItemList[%{#customItemStat.index}].hissuSelectSign"  />
						 </td>
						  <td align="center">
						  		<s:hidden name="customItemList[%{#customItemStat.index}].portaSign"/>
							 	<s:if test='%{customItemList[#customItemStat.index].portaSign == "true"}'>
							 		○
							 	</s:if>
							 	<s:else>
							 		×
							 	</s:else>
							 </td>
						<td>
							 <c:out value="${customItemList[customItemStat.index].content}" />
							 <s:hidden name="customItemList[%{#customItemStat.index}].content"  />
						</td>
						</tr>
						<s:hidden name="customItemList[%{#customItemStat.index}].schemaid" />
						<s:hidden name="customItemList[%{#customItemStat.index}].fieldKey"  />
						<s:hidden name="customItemList[%{#customItemStat.index}].fieldDisplayOrder"  value="%{#customItemStat.index}"/>
						<s:hidden name="customItemList[%{#customItemStat.index}].customSign"  value="1"/>
				</s:iterator>
				</table>
				</div>
			</div>
			</s:if>
			<!-- pageNaviC01 -->
			<div class="pageNaviC01">
			<table border="0" cellspacing="0" cellpadding="10" width="558">
				<tr>
					<c:if test="${actionType == 'DEL'}" >
						<td width="298" class="left"><p><input type="button" value="戻る" style="width:100px" onclick="location.href='<%= request.getContextPath() %>/output/modoru'"></p></td>
					</c:if>
					<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
						<td width="298" class="left"><p><input type="button" value="戻る" style="width:100px" onclick="back()"></p></td>
					</c:if>
					<td width="130" class="left">&nbsp;</td>
					<c:if test="${actionType == 'DEL'}" >
						<td width="130" class="right"><p><input type="submit" value="削除する" style="width:130px" ></p></td>
					</c:if>
					<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
						<td width="130" class="right"><p><input type="submit" value="登録する" style="width:130px" ></p></td>
					</c:if>

				</tr>
			</table>
			</div>
			</form>
		<!-- === /contentsArea === -->
		</td>
		<td width="16"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="16" height="4" border="0" alt=""></td>
	</tr>
</table>
</div><!-- === /mainArea === -->

<!-- === footerArea === -->
<div id="footerArea">
<jsp:include page="/common/include/footer.jsp" />
<!--#include virtual="<%= request.getContextPath() %>/common/include/footer.html" -->
</div><!-- === /footerArea === -->
</body>
</html>
<!-- System Architect is COOBA Corp
	Copyright 2010 COOBA Corp All rights reserved -->